Skip to content

TextMate rules for Markdown math formula syntax highlighting#222

Merged
arcticicestudio merged 1 commit into
developfrom
feature/gh-221-textmate-rules-math-formula-highlighting
Jul 14, 2021
Merged

TextMate rules for Markdown math formula syntax highlighting#222
arcticicestudio merged 1 commit into
developfrom
feature/gh-221-textmate-rules-math-formula-highlighting

Conversation

@arcticicestudio
Copy link
Copy Markdown
Contributor

Resolves #221

Before

After

VS Code 1.58 [1] (June 2021) introduced syntax highlighting for Markdown
math formulas [2]. To adapt the coloring to Nord's style new TextMate
rules with the following scopes have been added:

- `text.html.markdown constant.character.math.tex` - targets constants
  like `\displaystyle` and `\left`.
- `text.html.markdown constant.character.math.tex` - targets `$$`
  definition markers.
- `text.html.markdown punctuation.definition.function.math.tex` -
  targets the `\` (backslash) function definition marker.
- `text.html.markdown punctuation.math.operator.latex` - targets
  operators like `=`.

[1]: https://code.visualstudio.com/updates/v1_58
[2]: https://code.visualstudio.com/updates/v1_58#_markdown-math-formula-syntax-highlighting

Co-authored-by: Sven Greb <development@svengreb.de>

GH-221
@arcticicestudio arcticicestudio merged commit 6073348 into develop Jul 14, 2021
@arcticicestudio arcticicestudio deleted the feature/gh-221-textmate-rules-math-formula-highlighting branch July 14, 2021 20:11
arcticicestudio added a commit that referenced this pull request Jul 14, 2021
VS Code 1.58 [1] (June 2021) introduced syntax highlighting for Markdown
math formulas [2]. To adapt the coloring to Nord's style new TextMate
rules with the following scopes have been added:

- `text.html.markdown constant.character.math.tex` - targets constants
  like `\displaystyle` and `\left`.
- `text.html.markdown constant.character.math.tex` - targets `$$`
  definition markers.
- `text.html.markdown punctuation.definition.function.math.tex` -
  targets the `\` (backslash) function definition marker.
- `text.html.markdown punctuation.math.operator.latex` - targets
  operators like `=`.

[1]: https://code.visualstudio.com/updates/v1_58
[2]: https://code.visualstudio.com/updates/v1_58#_markdown-math-formula-syntax-highlighting

Co-authored-by: Sven Greb <development@svengreb.de>

Closes GH-221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextMate rules for Markdown math formula syntax highlighting

2 participants